<?php
include('./config.php');

$val0 = $_GET['val0'];
$val1 = $_GET['val1'];
$val2 = $_GET['val2'];
$val3 = $_GET['val3'];
$val4 = $_GET['val4'];
$val5 = $_GET['val5'];
$val6 = $_GET['val6'];
$val7 = $_GET['val7'];
$val8 = $_GET['val8'];
$val9 = $_GET['val9'];
$val10 = $_GET['val10'];
$val11 = $_GET['val11'];



// $sql = "insert into shop (name,price,num,phone) values ('$name',$price,$num,'$phone')";
$sql = "insert into goods values ($val0 ,'$val1','$val2',$val3,'$val4','$val5','$val6',$val7,'$val8','$val9','$val10','$val11','')";
                    // goods VALUES (3,    'F',    'bracelets',19999,'一生唯一','g','0353',8758,'g-7.2g','均码','定制@钻石');
$res = mysql_query($sql);

if ($res) {
  echo json_encode(array(
    "code" => 200,
    "body" => array(
      "msg" => "新增商品成功！",
      "kk"=>$val9 
    )
  ));
} else {
  echo json_encode(array(
    "code" => 201,
    "body" => array(
      "msg" => "网络错误，别试了",
      "kk"=>$val0
    )
  ));
}

?>